package ar.com.mooral.crohn.view;

import android.content.Context;
import android.widget.RadioButton;
import ar.com.mooral.pojo.BasePojo;

public class CrohnRadioButton extends RadioButton {

	private BasePojo basePojo;
	
	public CrohnRadioButton(Context context) {
		super(context);
	}

	public void setPojo(BasePojo basePojo) {
		this.basePojo = basePojo;
	}

	public BasePojo getPojo() {
		return this.basePojo;
	}

	public void SetText(String text) {
		if (text.length()>30) {
			text = text.substring(0, 30) + "...";
		}
		super.setText(text);
	}

}